﻿@{
    ViewBag.Title = "产品列表";
    Layout = "~/Areas/Shared/_spEdit.cshtml";
   
}
@using Kaiser.Extensions
@model Kaiser.Modules.Cubic.DomainModel.Product.ProductCategory
<link href="@Url.Content("~/Scripts/Uploadify/3.1/uploadify.css")" rel="stylesheet"  type="text/css" />
<script src="@Url.Content("~/Scripts/Uploadify/3.1/swfobject.js")"   type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Uploadify/3.1/jquery.uploadify-3.1.min.js")"   type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Plugins/jquery-jtemplates.js")"   type="text/javascript"></script>


<form method="post">

    <table>
        @if (Model.Id>0)
        {
            <tr>
                <td>上级分类：
                </td>
                <td>
                    @Html.Hidden("ParentId", Model.ParentId)


                    @Model.ParentName
                </td>
            </tr>
        }
        else if (!string.IsNullOrWhiteSpace(Request["parentId"]))
        {
                        <tr>
                <td>上级分类：
                </td>
                <td>
                    @Html.Hidden("ParentId",Request["parentId"])


                    @System.Web.HttpContext.Current.Server.UrlDecode(Request["ParentName"]) 
                </td>
            </tr>
        }
      

        <tr>
            <td>分类名称：
            </td>
            <td>
                @Html.HiddenFor(m => Model.CategoryCode)
                @Html.TextBoxFor(m => Model.CategoryName, new { @Class = "easyui-validatebox", @required = "true" })

            </td>
        </tr>
    </table>
</form>

